package com.mmall.param;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @description:
 * @author: mingtai
 * @createDate: 23:42 2020/7/8
 * @version: 1.0
 */

@Getter
@Setter
@ToString
public class DeptParam {

    private Integer id;

    @NotBlank(message = "这是部门名称，不能为空")
    @Length(max = 15,min = 2,message = "部门名称长度需要在2-5之间的哈")
    private String name;

    private Integer parentId = 0;

    @NotNull(message = "这是一个报错message，来自校验器，展示顺序不能为空")
    private Integer seq;

    @Length(max = 150,message = "这是一个备注，只能在150个字以内")
    private String remark;

}



